﻿using AutoMapper;
using Newtonsoft.Json;
using Standard;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow.Application.Dto;
using Workflow.Application.Dto.Input;
using Workflow.Application.Dto.Output;
using Workflow.Domain.Model;

namespace Workflow.Application
{
    public interface IWorkflowService
    {
        ApiResult<int> AddDefinition(DefinitionInput input);
        void LoaderDefinition(DefinitionModel model);
       Task<ApiResult<int>> StartAudit(StartAuditInput input);

        ApiResult<List<DefinitionModel>> GetAll();

        Task<ApiResult<int>> Audit(AuditInput input);

        ApiPaging<InstanceOutput> GetInstance(int shuju,int yema, string name, string rolename);

        ApiResult<List<AuditModel>> GetAudit(string auditusername);
    }
}
